//
//  XFDViewController.m
//  XFDCommon
//
//  Created by 北京国泰北斗科技有限公司 on 11/02/2017.
//  Copyright (c) 2017 北京国泰北斗科技有限公司. All rights reserved.
//

#import "XFDViewController.h"
#import <XFDCommon/UIBarButtonItem+Extension.h>
#import <XFDCommon/HBBaseController.h>
#import <XFDCommon/HBUBoxAlertView.h>
#import "XFDTableViewController.h"

@interface XFDViewController ()

@end

@implementation XFDViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    self.title = @"ViewController";
    
    self.view.backgroundColor = [UIColor whiteColor];
    self.navigationItem.rightBarButtonItem = [UIBarButtonItem rightItemBtnWithTargetBlock:^{
        
    } title:@""];
    UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
    btn.frame = CGRectMake(100, 100, 100, 100);
    btn.backgroundColor = [UIColor redColor];
    [self.view addSubview:btn];
    [btn addTarget:self action:@selector(action) forControlEvents:UIControlEventTouchUpInside];
}


- (void)action{
    XFDTableViewController *ctr = [[XFDTableViewController alloc]init];
    [self.navigationController pushViewController:ctr animated:YES];
    
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
